﻿<%@ Page Title="" Language="VB" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="false" CodeFile="Track_applicationRequest.aspx.vb" Inherits="UCMain_Track_application" %>

<%@ Register assembly="Brilliant.Presentation.WebControls" namespace="Brilliant.Presentation.WebControls" tagprefix="cc1" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:Panel ID="Panel1" runat="server">
    <table id="tbM" style="width:100%" >
    <tr>
        <td style="text-align: center" class="bgTable">Track Possession Application</td>
           <table style="width:100%">
            <tr>
                <td class="lblNormal" style="width25%; text-align: left;">
            <asp:Image ID="img" runat="server" Visible="False" />
            &nbsp;<asp:Label ID="lblerror" runat="server"></asp:Label>
                </td>
                <td class="auto-style47" style="width: 34%">
                    <asp:Label ID="lblidREQ" runat="server" Visible="False"></asp:Label>
                </td>
                <td class="lblNormal" style="width: 36%">&nbsp;</td>
            </tr>
               <tr>
                   <td class="lblNormal" style="width25%; text-align: left;">
                       <asp:Label ID="lblTPNOS" runat="server" Visible="False">TP. NO :</asp:Label>
                       &nbsp;
                       <asp:Label ID="lblTPNO" runat="server" Visible="False"></asp:Label>
                   </td>
                   <td class="auto-style47" style="width: 34%">&nbsp;</td>
                   <td class="lblNormal" style="width: 36%">&nbsp;</td>
               </tr>
            </table>
       
          
        
        <table style="width:100%">
            <tr>
                <td class="bgTableHead" colspan="4" style="width25%; text-align: left; height: 5px;">TRACK POSSESION APPLICATION</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 847px; height: 36px;">Track Possesion&nbsp;&nbsp; Application by</td>
                <td class="auto-style49" style="width: 33%; height: 36px;">
                    <asp:TextBox ID="TxtReqBy" runat="server" CssClass="lblDisable" ReadOnly="True" style="margin-left: 0px; text-align: center;" Width="140px"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 17%; height: 36px;">Company/Section</td>
                <td class="auto-style47" style="width: 34%; height: 36px;">
                    <asp:TextBox ID="TxtCompReqBy" runat="server" CssClass="lblDisable" ReadOnly="True" Width="140px"></asp:TextBox>
                </td>
            </tr>
        </table>
        <table style="width:100%">
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px; height: 36px;">Mobile Phone</td>
                <td class="auto-style49" style="width: 33%; height: 36px;">
                    <asp:TextBox ID="TxtTelReqBy" runat="server" CssClass="lblDisable" MaxLength="10" ReadOnly="True" Width="100px"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 17%; height: 36px;">
                    <asp:Label ID="lblID_USER" runat="server" Visible="False"></asp:Label>
                </td>
                <td class="auto-style47" style="width: 34%; height: 36px;">
                    <asp:Label ID="lblIDPICopTrack" runat="server" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="bgTableHead" colspan="5" style="width25%; text-align: left; height: 19px;">PERSON IN CHANGE</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px;">PICOP NO. * </td>
                <td class="auto-style14" style="width: 33%; ">
                    <asp:TextBox ID="TxtPicopNo" runat="server" CssClass="txtNormal" style="margin-left: 0px" Width="140px"></asp:TextBox>
                    &nbsp;</td>
                <td class="auto-style45" style="width: 17%">
                    <asp:Button ID="btnSearch" runat="server" CssClass="txtNormal" Text="Search" />
                </td>
                <td class="auto-style45" style="width: 34%">
                    <asp:Label ID="lblIDPICop" runat="server" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px;">Person in charge of Possession </td>
                <td class="auto-style14" style="width: 33%; ">
                    <asp:TextBox ID="txtNamePICOP" runat="server" CssClass="lblDisable" ReadOnly="True" Width="140px"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 17%">&nbsp;</td>
                <td class="auto-style45" style="width: 34%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px; height: 20px;">Company/Section</td>
                <td class="auto-style14" style="width: 33%; height: 20px;">
                    <asp:TextBox ID="TxtCompPicop" runat="server" CssClass="lblDisable" ReadOnly="True" Width="140px"></asp:TextBox>
                </td>
                <td class="lblNormal" style="width: 17%; height: 20px;">Mobile Phone</td>
                <td class="auto-style45" style="width: 34%; height: 20px;">
                    <asp:TextBox ID="TxtTelPicop" runat="server" CssClass="lblDisable" ReadOnly="True" Width="140px"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="bgTableHead" colspan="5" style="width25%; text-align: left; ">WORK APPROVED</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px;">Work Approved by *</td>
                <td class="auto-style14" style="width: 33%; ">
                    <asp:TextBox ID="TxtWorkApp" runat="server" CssClass="txtNormal" Width="140px"></asp:TextBox>
                    &nbsp;</td>
                <td class="lblNormal" style="width: 17%">Company/Section * </td>
                <td class="auto-style45" style="width: 34%">
                    <asp:TextBox ID="TxtComWorkapp" runat="server" CssClass="txtNormal" Width="140px"></asp:TextBox>
                    &nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 769px;">Mobile Phone *</td>
                <td class="auto-style14" style="width: 33%; ">
                    <asp:TextBox ID="TxtTelWorkapp" runat="server" CssClass="txtNormal" Width="100px"></asp:TextBox>
                    &nbsp;</td>
                <td class="lblNormal" style="width: 17%">&nbsp;</td>
                <td class="auto-style45" style="width: 34%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 769px;">&nbsp;</td>
                <td class="auto-style14" style="width: 33%; ">&nbsp;</td>
                <td class="auto-style45" style="width: 17%">&nbsp;</td>
                <td class="auto-style45" style="width: 34%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; width: 769px;">
                    <table class="auto-style1">
                        <tr>
                            <td class="lblNormal">Duration of work&nbsp; *</td>
                        </tr>
                    </table>
                </td>
                <td class="lblNormal" style="width: 33%; ">start&nbsp;&nbsp;
                    <cc1:DatePicker ID="txtDateStart" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                </td>
                <td class="lblNormal" colspan="2">finish&nbsp;
                    <cc1:DatePicker ID="txtDateEnd" runat="server" Language="English" Width="80px"></cc1:DatePicker>
                </td>
            </tr>
        </table>
       
          
        
        <table style="width:100%">
            <tr>
                <td class="lblNormal" style="text-align: left; width35%: ;" colspan="2">Work location *</td>
                <td class="lblNormal" style="width: 22%">
                    &nbsp;</td>
                <td class="auto-style45" style="width: 25%">&nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="text-align: left; width35%: ; height: 52px;">&nbsp;</td>
                <td class="lblNormal" style="width: 32%; height: 52px;">
                    <asp:CheckBox ID="chkWest" runat="server" Text="West bound" />
                </td>
                <td class="lblNormal" style="width: 22%; height: 52px;">
                    <asp:CheckBox ID="chkEast" runat="server" Text="East Bound" />
                </td>
                <td class="auto-style45" style="width: 25%; height: 52px;"></td>
                <td class="auto-style22" style="width: 36%; height: 52px;"></td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="auto-style14" colspan="3">
                    <asp:RadioButtonList ID="rdoWorkLocate" runat="server" AutoPostBack="True" CssClass="lblNormal" RepeatDirection="Horizontal" Width="401px">
                        <asp:ListItem Value="1">Specify by Station</asp:ListItem>
                        <asp:ListItem Value="2">Specify by Signal</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="lblNormal" colspan="3">From&nbsp;&nbsp;
                    <asp:DropDownList ID="DDlWorkLocate_From" runat="server" CssClass="txtNormal" Height="20px" Width="85px">
                        <asp:ListItem Value="0">-- Select --</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;
                    <asp:TextBox ID="txtDescript_area_from" runat="server" Width="120px"></asp:TextBox>
                    &nbsp;&nbsp; To&nbsp;&nbsp;
                    <asp:DropDownList ID="DDlWorkLocate_To" runat="server" CssClass="txtNormal" Height="20px" Width="86px">
                        <asp:ListItem Value="0">-- Select --</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;<asp:TextBox ID="txtDescript_area_to" runat="server" Width="120px"></asp:TextBox>
                    &nbsp;&nbsp;&nbsp; </td>
                <td class="auto-style22" style="width: 36%">&nbsp; </td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="lblNormal" colspan="3">From&nbsp;&nbsp;
                    <asp:DropDownList ID="DDlWorkLocate_FromS" runat="server" AppendDataBoundItems="True" CssClass="txtNormal" Enabled="False" Height="20px" Width="85px">
                        <asp:ListItem Value="0">-- Select --</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;To&nbsp;&nbsp;
                    <asp:DropDownList ID="DDlWorkLocate_ToS" runat="server" CssClass="txtNormal" Height="20px" Width="85px">
                        <asp:ListItem Value="0">-- Select --</asp:ListItem>
                    </asp:DropDownList>
                    &nbsp; </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" colspan="2" style="width25%; text-align: left; height: 29px;">Power location level requried during work *</td>
                <td class="auto-style45" style="width: 22%; height: 29px;"></td>
                <td class="auto-style45" style="width: 25%; height: 29px;"></td>
                <td class="auto-style22" style="width: 36%; height: 29px;"></td>
            </tr>
            <tr>
                <td class="auto-style3" style="width25%; text-align: left; height: 36px;"></td>
                <td class="auto-style14" style="width: 32%; height: 36px;">
                    <asp:RadioButtonList ID="rdoEnergize" runat="server" AutoPostBack="True" CssClass="lblNormal" Height="27px" RepeatDirection="Horizontal" Width="187px">
                        <asp:ListItem Value="1">De-energize</asp:ListItem>
                        <asp:ListItem Value="0">energize</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="lblNormal" style="width: 22%; height: 36px;">Refer to STPA Standard&nbsp;&nbsp;</td>
                <td class="auto-style45" colspan="2" style="height: 36px">
                    <asp:CheckBoxList ID="CheckBoxE_1_6" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="False" AppendDataBoundItems="True">
                        <asp:ListItem Value="E0">All</asp:ListItem>
                        <asp:ListItem Value="E1">E1</asp:ListItem>
                        <asp:ListItem>E2</asp:ListItem>
                        <asp:ListItem>E3</asp:ListItem>
                        <asp:ListItem>E4</asp:ListItem>
                        <asp:ListItem>E5</asp:ListItem>
                        <asp:ListItem>E6</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="auto-style14" style="width: 32%; ">&nbsp;</td>
                <td class="auto-style45" style="width: 22%">&nbsp;</td>
                <td class="auto-style45" colspan="2">
                    <asp:CheckBoxList ID="CheckBoxW_1_6" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow" Visible="False">
                        <asp:ListItem Value="W0">All</asp:ListItem>
                        <asp:ListItem>W1</asp:ListItem>
                        <asp:ListItem>W2</asp:ListItem>
                        <asp:ListItem>W3</asp:ListItem>
                        <asp:ListItem>E4</asp:ListItem>
                        <asp:ListItem>W5</asp:ListItem>
                        <asp:ListItem>W6</asp:ListItem>
                    </asp:CheckBoxList>
                </td>
            </tr>
        </table>
       
          
        
        <table style="width:100%">
            <tr>
                <td class="lblNormal" colspan="2" style="width25%; text-align: left; height: 20px;">Train to be use or requested? *</td>
                <td class="auto-style45" style="width: 19%; height: 20px;"></td>
                <td class="lblNormal" style="width: 25%; height: 20px;">Vihecles to be use or requested?</td>
                <td class="auto-style22" style="width: 36%; height: 20px;">*</td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="auto-style14" style="width: 24%; ">
                    <asp:RadioButtonList ID="rdoTrain_Vihicle" runat="server" AutoPostBack="True" CssClass="lblNormal" Height="19px" RepeatDirection="Horizontal" Width="173px">
                        <asp:ListItem Value="0">No</asp:ListItem>
                        <asp:ListItem Value="1">Yes</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="auto-style45" style="width: 19%">
                    <asp:CheckBoxList ID="chkT" runat="server" DataSourceID="dsV" DataTextField="Vehicles" DataValueField="ID" RepeatColumns="1" Visible="False">
                    </asp:CheckBoxList>
                    <asp:AccessDataSource ID="dsV" runat="server" DataFile="~/App_Data/Senior_project.accdb" SelectCommand="SELECT [ID], [Vehicles] FROM [Vehicles] WHERE ([Type] = ?) ORDER BY [ID]">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="1" Name="Type" Type="Int32" />
                        </SelectParameters>
                    </asp:AccessDataSource>
                </td>
                <td class="auto-style45" style="width: 25%">
                    <asp:RadioButtonList ID="rdoTrain_Vihicle2" runat="server" AutoPostBack="True" CssClass="lblNormal" Height="16px" RepeatDirection="Horizontal" Width="181px">
                        <asp:ListItem Value="0">No</asp:ListItem>
                        <asp:ListItem Value="1">Yes</asp:ListItem>
                    </asp:RadioButtonList>
                </td>
                <td class="auto-style22" style="width: 36%">
                    <asp:CheckBoxList ID="chkV" runat="server" DataSourceID="dsV2" DataTextField="Vehicles" DataValueField="ID" RepeatColumns="1" RepeatDirection="Horizontal" Visible="False">
                    </asp:CheckBoxList>
                    <asp:AccessDataSource ID="dsV2" runat="server" DataFile="~/App_Data/Senior_project.accdb" SelectCommand="SELECT [ID], [Vehicles] FROM [Vehicles] WHERE ([Type] = ?) ORDER BY [ID]">
                        <SelectParameters>
                            <asp:Parameter DefaultValue="2" Name="Type" Type="Int32" />
                        </SelectParameters>
                    </asp:AccessDataSource>
                </td>
            </tr>
            <tr>
                <td style="width25%; text-align: left; ">&nbsp;</td>
                <td class="auto-style14" style="width: 24%; ">&nbsp;</td>
                <td class="auto-style45" style="width: 19%">&nbsp;</td>
                <td class="auto-style45" style="width: 25%">&nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
        </table>
        <table style="width:100%">
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">Description of work *</td>
                <td class="auto-style14" colspan="3">
                    <asp:TextBox ID="TxtDes_work" runat="server" CssClass="txtNormal" Height="43px" style="margin-left: 0px" Width="533px"></asp:TextBox>
                </td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="lblNormal" style="width25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 8%; ">&nbsp;&nbsp;</td>
                <td class="auto-style45" style="width: 13%">&nbsp;</td>
                <td class="auto-style45" style="width: 12%">&nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
            <tr>
                <td class="auto-style3" style="width:25%; text-align: left; width: 135px;">&nbsp;</td>
                <td class="auto-style14" style="width: 8%; ">
                    <asp:Button ID="Btn_Submit" runat="server" CssClass="txtNormal" Text="Submit" />
                    &nbsp;<asp:Button ID="Btn_clear" runat="server" CssClass="txtNormal" Text="Clear " />
                </td>
                <td class="auto-style45" style="width: 13%">&nbsp;</td>
                <td class="auto-style45" style="width: 12%">&nbsp;</td>
                <td class="auto-style22" style="width: 36%">&nbsp;</td>
            </tr>
        </table>
       
          
        
    </tr>
</table>
        </asp:Panel>
    <table id="tbAP" style="width:100%" runat="server">
        <tr>
            <td style="width:40%"></td>
            <td colspan="4" style="width:60%" class="lblNormal">  <asp:Button ID="btnAP" runat="server" Text="Approved" 
                            CssClass="txtNormal" Visible="False" />&nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" 
                            CssClass="txtNormal" Visible="False" PostBackUrl="~/UCMain/TrackPossession.aspx" /></td>
            
        </tr>
    </table>
</asp:Content>
